package com.kt.uokos.yimo.service.impl;

import com.kt.uokos.yimo.dao.GoodsAttribute;
import com.kt.uokos.yimo.example.GoodsAttributeExample;
import com.kt.uokos.yimo.mapper.GoodsAttributeMapper;
import com.kt.uokos.yimo.service.GoodsAttributeService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsAttributeServiceImpl implements GoodsAttributeService {
    @Resource
    private GoodsAttributeMapper goodsAttributeMapper;


    @Override
    public List<GoodsAttribute> queryGoodsAttribute(Integer id) {
        GoodsAttributeExample example = new GoodsAttributeExample();
        example.or().andGoodsIdEqualTo(id).andDeletedEqualTo(false);
        return goodsAttributeMapper.selectByExample(example);
    }
}
